package model;

import java.util.ArrayList;
import java.util.Collections;

public class ProbabilityEnergyProfile{
	private int id;
	private ArrayList<ProbabilityUsagetype> probabilityList = new ArrayList<ProbabilityUsagetype>();
	
	
	public ProbabilityEnergyProfile(){
	}

	public ProbabilityEnergyProfile(int size, int id){
		this.id = id;
		setProbabilityList(new ArrayList<ProbabilityUsagetype>(size));
		
	}

	public void setProbabilityList(ArrayList<ProbabilityUsagetype> probabilityList) {
		this.probabilityList = probabilityList;
	}

	public ArrayList<ProbabilityUsagetype> getProbabilityList() {
		return probabilityList;
	}
	
	public boolean addProbability(ProbabilityUsagetype prob) {
		return probabilityList.add(prob);
	}
	
	public boolean removeProbability(ProbabilityUsagetype prob) {
		return probabilityList.remove(prob);
	}
	
	public void sort(){
		Collections.sort(probabilityList);
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}
	
}
